|
SCROLL LIMB TEXTURE
This command will scroll the UV data of the specified limb of the 3D object.
SCROLL LIMB TEXTURE Object Number, Limb Number, X, Y
SCROLL LIMB TEXTURE Object Number, Limb Number, Stage, X, Y
Object Number
Integer
The object number
Limb Number
Integer
The limb number
Stage
Integer
The U value controls the horizontal shift of the data
X
Float
The V value controls the vertical shift of the data
Y
Float
Specify the Y position value.
This command does not return a value.
The UV data controls how a texture is mapped onto your object. By scrolling the UV data, you can effectively scroll the texture over your limb. The U value controls the horizontal shift of the data. The V value controls the vertical shift of the data. The scroll effect is permanent. Ensure that the image you use fills the whole texture, so using a texture flag of one with LOAD IMAGE will cause visual artefacts!
sync on : sync rate 60 : hide mouse:cls 0
ObjectNumber=1
LimbNumber=7
rem Load object
load object "model.x",ObjectNumber
load image "iron.jpg",1
while mouseclick()=0
scroll limb texture ObjectNumber,LimbNumber,0.5,0.5
sync
endwhile
delete object ObjectNumber
delete image 1
end
BASIC3D Commands Menu
Index
|